package com.company;

import java.util.ArrayList;

// -Xms20M -Xmx20M -Xmn10M -XX:+UseG1GC -XX:+G1HeapRegionSize=1m -XX:MaxGCPauseMillis=200ms -XX:+PrintGCDetails -verbose:gc
public class C09GC_G1 {
    private static final int _521KB=512*1024;
    private static final int _1MB=1*1024*1024;
    private static final int _6MB=6*1024*1024;
    private static final int _7MB=7*1024*1024;
    private static final int _8MB=8*1024*1024;

    public static void main(String[] arg0) throws InterruptedException {

        ArrayList<byte[]> list=new ArrayList<>();
        list.add(new byte[_8MB]);
        list.add(new byte[_8MB]);
        list.add(new byte[_8MB]);
        list.add(new byte[_8MB]);
        Thread.sleep(2000);


    }
}
